package pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Objects;

@Data
@TableName("position")
public class Position {
    @TableId
    private Long pId;
    
    private String pName;
    @TableLogic
    private Boolean pDelflag;
  
    private Boolean pStatus;

    private Timestamp pCreateTime;
 
    private Timestamp pUpdateTime;

    private String pCreateUser;

    private String pUpdateUser;

    public Long getpId() {
        return pId;
    }

    public void setpId(Long pId) {
        this.pId = pId;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public Boolean getpDelflag() {
        return pDelflag;
    }

    public void setpDelflag(Boolean pDelflag) {
        this.pDelflag = pDelflag;
    }

    public Boolean getpStatus() {
        return pStatus;
    }

    public void setpStatus(Boolean pStatus) {
        this.pStatus = pStatus;
    }

    public Timestamp getpCreateTime() {
        return pCreateTime;
    }

    public void setpCreateTime(Timestamp pCreateTime) {
        this.pCreateTime = pCreateTime;
    }

    public Timestamp getpUpdateTime() {
        return pUpdateTime;
    }

    public void setpUpdateTime(Timestamp pUpdateTime) {
        this.pUpdateTime = pUpdateTime;
    }

    public String getpCreateUser() {
        return pCreateUser;
    }

    public void setpCreateUser(String pCreateUser) {
        this.pCreateUser = pCreateUser;
    }

    public String getpUpdateUser() {
        return pUpdateUser;
    }

    public void setpUpdateUser(String pUpdateUser) {
        this.pUpdateUser = pUpdateUser;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Position position = (Position) o;
        return pId == position.pId && Objects.equals(pName, position.pName) && Objects.equals(pDelflag, position.pDelflag) && Objects.equals(pStatus, position.pStatus) && Objects.equals(pCreateTime, position.pCreateTime) && Objects.equals(pUpdateTime, position.pUpdateTime) && Objects.equals(pCreateUser, position.pCreateUser) && Objects.equals(pUpdateUser, position.pUpdateUser);
    }

    @Override
    public int hashCode() {
        return Objects.hash(pId, pName, pDelflag, pStatus, pCreateTime, pUpdateTime, pCreateUser, pUpdateUser);
    }
}
